package com.lyb.controller;

import com.lyb.service.HelloService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloController {
    @Resource
    private HelloService helloService;

    @RequestMapping("/hello")
    public String hello() {
        return "pipeline-docker";
    }



    @RequestMapping("/info")
    public String info(Integer id) {
        String info = helloService.getById(id);
        return info;
    }
}